package com.xiaoshuidi.cloud.module.member.api.mobilemodifyrecord;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.member.api.mobilemodifyrecord.vo.MobileModifyRecordCreateReqVO;
import com.xiaoshuidi.cloud.module.member.service.mobilemodifyrecord.MemberMobileModifyRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RestController
public class MobileModifyRecordApiImpl implements MobileModifyRecordApi{
    @Resource
    private MemberMobileModifyRecordService memberMobileModifyRecordService;

    @Override
    public CommonResult<Boolean> createRecord(@RequestBody MobileModifyRecordCreateReqVO createReqVO) {
        log.info("[创建手机号修改记录接口被调用]");
        return memberMobileModifyRecordService.createRecord(createReqVO);
    }
}
